package sk.fiit.icp.welcome.view;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.panel.FeedbackPanel;
import org.apache.wicket.request.mapper.parameter.PageParameters;

public class WelcomePage extends WebPage {

	public WelcomePage(PageParameters parameters) {
		add(new HeaderSignInPanel("header"));
		add(new FeedbackPanel("feedback"));

		if (!parameters.get("panel").isEmpty() && parameters.get("panel").toString().equals("registration")) {
			add(new RegistrationPanel("bodyPanel"));
		} else {
			add(new WelcomePanel("bodyPanel"));
		}

	}
}
